#!/bin/bash  

# monkey patching b/c vivo ...
cp ../../config/vivo/secp256k1buildfix.patch src/
patch -p0 < src/secp256k1buildfix.patch
# end monkey patching

chmod u+x ./autogen.sh
./autogen.sh
./configure --disable-dependency-tracking --enable-tests=no --without-gui --without-miniupnpc --with-incompatible-bdb CFLAGS="-march=native" LIBS="-lcurl -lssl -lcrypto -lz"
make
make install
